package com.huangguolin.cloud.api.course.repository;

import com.huangguolin.cloud.api.course.entity.ApiCourseSearchEntity;
import com.huangguolin.cloud.api.course.entity.ApiScheduleEntity;
import com.huangguolin.cloud.mybatis.entity.PtCourseEntity;
import com.huangguolin.cloud.mybatis.flexigrid.PagingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ApiCourseDao {
     List<PtCourseEntity> queryCourseList(@Param("entity") ApiCourseSearchEntity entity, @Param("paging")PagingEntity paging);

     Integer queryCourseTotal(@Param("entity")ApiCourseSearchEntity entity);

     void deleteCourse(@Param("courseIdArray")String[] courseIdArray);

     void addCourse(@Param("courseIdArray")String[] courseIdArray);

    /**
     * 增加日程
     * @param entity
     * @return
     */
    boolean onSubmit(ApiScheduleEntity entity);


    /**
     * 增加日程
     * @param name
     * @param radio
     * @param time
     * @param date
     * @param select
     * @param address
     * @param remark
     * @return
     */
//    boolean onSubmit(@Param("name")String name,@Param("radio") String radio,@Param("time") List<PtCourseEntity> time, @Param("date")List<PtCourseEntity> date, @Param("select")String select,@Param("address") String address, @Param("remark")String remark);
}
